<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="sidebar-collapse">
        <ul class="nav metismenu" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span>
                        <img alt="image" class="img-circle" src="/backend/images/default.jpg" style="width: 48px"/>
                    </span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
                            <span class="block m-t-xs">
                                <strong class="font-bold">{{ $user->name }}</strong>
                            </span>
                            <span class="text-muted text-xs block">{{ $user->email }}
                                <b class="caret"></b>
                            </span>
                        </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="#">Profile</a></li>
                        <li><a href="#">Contacts</a></li>
                        <li><a href="#">Mailbox</a></li>
                        <li class="divider"></li>
                        <li><a href="/admin/logout"
                               onclick="event.preventDefault();document.getElementById('logout-form').submit();">Logout</a></li>
                    </ul>
                </div>
                <div class="logo-element">
                    BD
                </div>
            </li>
            <li class="{{ (Request::is('admin/dashboard') || Request::is('admin')) ? 'active' : '' }}">
                <a href="/admin/dashboard">
                    <i class="fa fa-th-large"></i>
                    <span class="nav-label">Dashboard</span>
                </a>
            </li>
            <li class="{{ Request::is('admin/photo/types') ? 'active' : '' }}">
                <a href="/admin/photo/types">
                    <i class="fa fa-cubes"></i>
                    <span class="nav-label">All Photo Types</span>
                </a>
            </li>
            <li class="{{ Request::is('admin/photo/slides') ? 'active' : '' }}">
                <a href="/admin/photo/slides">
                    <i class="fa fa-cubes"></i>
                    <span class="nav-label">All Photo Slides</span>
                </a>
            </li>
            <li class="{{ Request::is('admin/photos*') ? 'active' : '' }}">
                <a href="#">
                    <i class="fa fa-photo"></i>
                    <span class="nav-label">All Photos</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level collapse">
                    @foreach($types as $type)
                    <li class="{{ str_contains(Request::fullUrl(), '/admin/photos?id='.$type->id) ? 'active' : '' }}">
                        <a href="/admin/photos?id={{ $type->id }}">{{ ucfirst($type->name) }}</a>
                    </li>
                    @endforeach
                </ul>
            </li>
            <li class="{{ Request::is('admin/videos') ? 'active' : '' }}">
                <a href="/admin/videos">
                    <i class="fa fa-book"></i>
                    <span class="nav-label">All Videos</span>
                </a>
            </li>
            <li class="{{ Request::is('admin/feedback*') ? 'active' : '' }}">
                <a href="#">
                    <i class="fa fa-commenting"></i>
                    <span class="nav-label">All Feedback</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level collapse">
                    <li class="{{ str_contains(Request::fullUrl(), '/admin/feedback?review=0') ? 'active' : '' }}">
                        <a href="/admin/feedback?review=0">Unaudited </a>
                    </li>
                    <li class="{{ str_contains(Request::fullUrl(), '/admin/feedback?review=1') ? 'active' : '' }}">
                        <a href="/admin/feedback?review=1">Audited</a>
                    </li>
                </ul>
            </li>
        </ul>

    </div>
</nav>